/*    */ package eos.moe.dragoncore;
/*    */ 
/*    */ import java.util.HashSet;
/*    */ import java.util.Set;
/*    */ import java.util.stream.Collectors;
/*    */ import net.minecraftforge.client.event.GuiOpenEvent;
/*    */ import net.minecraftforge.client.event.MouseEvent;
/*    */ import net.minecraftforge.fml.common.eventhandler.SubscribeEvent;
/*    */ import net.minecraftforge.fml.common.gameevent.InputEvent;
/*    */ import org.lwjgl.input.Keyboard;
/*    */ 
/*    */ 
/*    */ public class aka
/*    */ {
/*    */   public static aka q;
/*    */   public Set<String> g;
/*    */   
/*    */   public aka() {
/* 19 */     q = this;
/* 20 */     this.g = new HashSet<>();
/*    */   }
/*    */   
/*    */   @SubscribeEvent
/*    */   public void v(MouseEvent mouseEvent) {
/* 25 */     String str = "UNKNOWN";
/* 26 */     switch (mouseEvent.getButton()) {
/*    */       case 0:
/* 28 */         str = "MOUSE_LEFT";
/*    */         break;
/*    */       case 1:
/* 31 */         str = "MOUSE_RIGHT";
/*    */         break;
/*    */       case 2:
/* 34 */         str = "MOUSE_MIDDLE";
/*    */         break;
/*    */     } 
/* 37 */     if (mouseEvent.isButtonstate()) {
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */       
/* 43 */       Set<String> set = (Set)this.g.stream().map(Keyboard::getKeyIndex).filter(a -> (a.intValue() != 0)).filter(Keyboard::isKeyDown).map(Keyboard::getKeyName).collect(Collectors.toSet());
/* 44 */       uy.v(str, set);
/*    */     } else {
/* 46 */       uy.v(str);
/*    */     } 
/*    */   }
/*    */   
/*    */   @SubscribeEvent
/*    */   public void v(GuiOpenEvent guiOpenEvent) {
/* 52 */     if (guiOpenEvent.getGui() != null) {
/* 53 */       uy.v("ALL");
/*    */     }
/*    */   }
/*    */   
/*    */   @SubscribeEvent
/*    */   public void v(InputEvent.KeyInputEvent keyInputEvent) {
/* 59 */     if (Keyboard.getEventKeyState()) {
/*    */       
/* 61 */       String str = Keyboard.getKeyName(Keyboard.getEventKey());
/* 62 */       if (!this.g.contains(str)) {
/*    */         return;
/*    */       }
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */       
/* 71 */       Set<String> set = (Set)this.g.stream().map(Keyboard::getKeyIndex).filter(a -> (a.intValue() != 0)).filter(Keyboard::isKeyDown).map(Keyboard::getKeyName).collect(Collectors.toSet());
/* 72 */       uy.v(str, set);
/*    */     } else {
/*    */       
/* 75 */       String str = Keyboard.getKeyName(Keyboard.getEventKey());
/*    */       
/* 77 */       if (!this.g.contains(str)) {
/*    */         return;
/*    */       }
/* 80 */       uy.v(str);
/*    */     } 
/*    */   }
/*    */ }


/* Location:              D:\fanbian\[D][龙之核心]DragonCore-2.6.0.3.jar!\eos\moe\dragoncore\aka.class
 * Java compiler version: 8 (52.0)
 * JD-Core Version:       1.1.3
 */